package com.hyy.formal;

import org.squirrelframework.foundation.fsm.annotation.StateMachineParameters;
import org.squirrelframework.foundation.fsm.impl.AbstractUntypedStateMachine;

/**
 * Created by hyygavin on 2017/10/20.
 */
@StateMachineParameters(stateType= MyState.class, eventType= MyEvent.class, contextType=MyContext.class)
public class MyAbstractStateMachine extends AbstractUntypedStateMachine {

    protected void fromto(MyState from, MyState to, MyEvent event, MyContext context) {
        System.out.println(event.name());
    }

}
